.PHONY:all
all: memcpy_self memmove_self memset_self strcat_self strcpy_self strlen_self strstr_self \
		strcmp_self strncpy_self strncat_self strncmp_self 
 
memcpy_self:memcpy_self.cc
	g++ -o $@ $^ -std=c++11 
memmove_self:memmove_self.cc
	g++ -o $@ $^ -std=c++11
memset_self:memset_self.cc
	g++ -o $@ $^ -std=c++11
strcat_self:strcat_self.cc
	g++ -o $@ $^ -std=c++11
strcpy_self:strcpy_self.cc
	g++ -o $@ $^ -std=c++11
strlen_self:strlen_self.cc
	g++ -o $@ $^ -std=c++11
strstr_self:strstr_self.cc
	g++ -o $@ $^ -std=c++11
strcmp_self:strcmp_self.cc
	g++ -o $@ $^ -std=c++11
strncpy_self:strncpy_self.cc
	g++ -o $@ $^ -std=c++11
strncat_self:strncat_self.cc
	g++ -o $@ $^ -std=c++11
strncmp_self:strncmp_self.cc
	g++ -o $@ $^ -std=c++11


.PHONY:clean
clean:
	@rm -f memcpy_self memmove_self memset_self strcat_self strcpy_self strlen_self \
			strstr_self strcmp_self strncpy_self strncat_self strncmp_self
